home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>3</cardCount>
- <cardID>4151</cardID>
- <listID>3041</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>on distribute
-
- -- Delete all but the first check register page.
-
- go to second card of bkgnd "CheckReg"
- if the result is empty then
- repeat with i = the number of this card ¬
- to the number of last card of bkgnd "CheckReg"
- doMenu "Delete Card"
- end repeat
- end if
-
- -- Clear all the fields of the remaining register page.
-
- go to first card of bkgnd "CheckReg"
- repeat with i = 1 to the number of fields
- put empty into field i
- end repeat
- put "0.00" into field "BalFwd"
- put last item of the abbr date into field "Year"
-
- -- Clear the "Balance" card.
-
- go to card "Balance"
- repeat with i = 1 to the number of card fields
- put empty into card field i
- end repeat
-
- -- Clear the balance field of the first card.
-
- go to first card
- put empty into card field "Balance"
-
- -- Compact the Register stack.
-
- doMenu "Compact Stack"
-
- end distribute
-
- on newVersion version
- go to first card
- put version into card field "version"
- end newVersion
-
- -- openStack -- Set up some global values we use often.
-
- on openStack
- global FirstRow,NbrCols,LastRow,PayCol,DepCol,BalCol
- put the number of first card of bkgnd "CheckReg" into x
- put (number of bkgnd field FirstNbr of card x) into FirstRow
- put (number of bkgnd field SecondNbr of card x) - FirstRow ¬
- into NbrCols
- put (number of bkgnd field LastNbr of card x) into LastRow
- put (number of bkgnd field FirstPay of card x) - FirstRow ¬
- into PayCol
- put (number of bkgnd field FirstDep of card x) - FirstRow ¬
- into DepCol
- put (number of bkgnd field FirstBal of card x) - FirstRow ¬
- into BalCol
- put empty into LastDate
- end openStack
- </script>
- <background id="2569" file="background_2569.xml" name="CheckReg" />
- <background id="3854" file="background_3854.xml" name="" />
- <card id="4151" file="card_4151.xml" marked="false" name="" owner="3854" />
- <card id="5803" file="card_5803.xml" marked="false" name="Balance" owner="3854" />
- <card id="3272" file="card_3272.xml" marked="false" name="" owner="2569" />
- </stack>
-